package adapter.impl;

import java.awt.Point;

import Exceptions.InvalidArgument;
import adapter.TowerDefenseTestAdapterExtended2;

public class TowerDefenseTestAdapterExtended2Impl extends TowerDefenseTestAdapterExtended1Impl implements TowerDefenseTestAdapterExtended2 {

	@Override
	public void sellTowerAtCoordinate(Point position) {
		try {
			game.SellTower(position.x,position.y);
		} catch (InvalidArgument e) {
		}
		
	}

	@Override
	public void upgradeTowerAtCoordinate(Point position) {
		try {
			game.UpgradeTower(position.x,position.y);
		} catch (InvalidArgument e) {
			System.out.println("Given parameter(s) are/is out of bound(s).");
		}
		
	}

}
